<template>
    <div id="head">
        222
        <!-- <el-container>
        <el-row type="flex" style="height:80%;display:flex;align-items: flex-end">
                       <el-col :xs="2" :sm="2" :md="2" :offset="1" class="imgCol">
                        <img v-bind:src="backIcon" class="backSize" @click="back"/>
                    </el-col>
                    <el-col :xs="6" :sm="6" :md="6" :offset="6" class="imgCol"> 
                        <span class="titleSize">{{name}}</span>
                    </el-col>
                    <el-col :xs="3" :sm="3" :md="3" :offset="5" class="imgCol">
                        <span class="titleSize" @click="editNickName">{{action}}</span>
                    </el-col>
        </el-row>
        </el-container> -->
    </div> 
</template>
<script>
//import backIcon from '../../assets/img/mine/geRenZhongXin/back.png'
import backIcon from '../../../assets/img/mine/geRenZhongXin/back.png'
export default {
    name:'MyHeader',
    props:{
        name:'',
        action:'',
    },
    data(){
        return{

        }
    },
    mounted(){
        var normalHeight=sessionStorage.getItem('normalHeight');
        var head=document.getElementById("head");
        var headHeight=normalHeight/30 *4 ;
        console.log("headHeight:"+headHeight);
        head.style.height=headHeight+"px";
    },
    methods:{
        back(){
            console.log("back:");
            this.$router.go(-1);
        },
    }
}
</script>
<style>
#head{
    background-color: #53cdf5;
    color: #707070;
}
.backSize{
    height: 26px;
}
.titleSize{
    font-size:1.125em;
    color:#ffffff
}
@media screen and (max-width: 340px){
  .backSize{
      height: 22px;
  }
  .titleSize{
      font-size: 1em;
  }
}
</style>
